package com.zsp.exception;

public class FileSizeLimitExceededException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private final long maxSize;

    public FileSizeLimitExceededException(long maxSize) {
        super("文件大小超出限制，最大允许上传 " + maxSize + " MB");
        this.maxSize = maxSize;
    }

    public long getMaxSize() {
        return maxSize;
    }
}



